<script type="text/javascript">
	//<![CDATA[
	XHR.poll(5, '<%=luci.dispatcher.build_url("admin", "vpn", "openvpn-server", "get_log")%>', null,
		function(x, data) {
			if(x && x.status == 200) {
				var app_log = document.getElementById('app_log');
				app_log.innerHTML = data.app_log;
				
				var auth_log = document.getElementById('auth_log');
				auth_log.innerHTML = data.auth_log;
			}
		}
	);
	//]]>
</script>
<fieldset class="cbi-section">
	<textarea id="app_log" class="cbi-input-textarea" style="width: 100%;margin-top: 10px;" data-update="change" rows="30" wrap="off" readonly="readonly"></textarea>
	<textarea id="auth_log" class="cbi-input-textarea" style="width: 100%;margin-top: 10px;" data-update="change" rows="20" wrap="off" readonly="readonly"></textarea>
</fieldset>
